package com.laoxu.demo.bootstrapcurd.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("mqtt_acl")
public class EmqAcl {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 0: deny, 1: allow
     */
    private Integer allow;


    private String ipaddr;

    private String username;

    private String clientid;
    /**
     * 1: subscribe, 2: publish, 3: pubsub
     */
    private Integer access;
    /**
     * Topic Filter
     */
    private String topic;




}
